package com.bcqn.dao;

import com.bcqn.model.HousingInformation;
import com.bcqn.model.vo.RentingQueryObj;

import java.util.List;

public interface HousingInformationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(HousingInformation record);

    int insertSelective(HousingInformation record);

    HousingInformation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HousingInformation record);

    int updateByPrimaryKey(HousingInformation record);

    //根据用户的查询条件来查询相关的用户的信息
    List<HousingInformation> getHousInfoByPage(RentingQueryObj rentingQueryObj);

    List<HousingInformation> getMyPost(Long userId);

    List<HousingInformation> getMyCollection(Long userId);

    List<HousingInformation> myRentingCollection(Long userId);
}